package com.learn.service.impl;

import com.github.pagehelper.PageInfo;
import com.learn.dto.User;

import java.time.LocalDateTime;
import java.util.List;

public interface UserServiceImpl {

    List<User> findAll();

    List<User> getPage(int pageNum, int pageSize);

    User findById(Integer id);

    PageInfo<User> getPageCount(int pageNum, int pageSize);

    PageInfo<User> getPageCount(int pageNum, int pageSize, String name, Short gender, String phone, String account, Short status, String deptId, LocalDateTime beginTime, LocalDateTime endTime);

    int delete(int id);
    int deletes(List<Integer> ids);

    int insert(User user);
}
